package com.insurance.service.enums;

/**
 * 投标信息状态枚举类
 */
public enum BidSubjectStateEnum {

	SAVE("0", "保存"),
	ISINSURE_UNPAY("2", "投保中未支付"),
	IS_PAY("3", "已支付"),
	IS_COMPLETE("1", "已完成"),
	ERROR("7", "投保失败"),
    DELETE("9", "删除");

    private String code;

    private String message;

	BidSubjectStateEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public static String getMsg(String code){
		BidSubjectStateEnum[] values = BidSubjectStateEnum.values();
		for(BidSubjectStateEnum bidSubjectStateEnum : values){
			if(bidSubjectStateEnum.getCode().equals(code)){
				return bidSubjectStateEnum.getMessage();
			}
		}
		return "";
	}
    
}
